/**
 * 公共接口方法
 */
import {origin as API} from '../config';

export default {
  // 登录接口
  API_LOGIN_URL: API + 'login',
  //保存事故报案信息
  API_SAVE_ACCIDENT_INFO: API + 'AccidentInfoAction/addAccidentInfo',
  //获取图片的token
  API_IMG_TOKEN: API + 'ImageAction/getImageToken',
  //照片信息保存
  API_SAVE_IMG: API + 'PhotoInfoAction/savePhotoInfo',
  //查询图片信息
  API_QUERY_IMAGE: API + 'PhotoInfoAction/queryPhotoList',
  //一键删除照片
  API_DELETE_ALL_IMG: API + 'PhotoInfoAction/deletePhotoByAccidentNo',
  // 删除单张照片
  API_DELETE_SINGLE_IMG: API + 'PhotoInfoAction/deletePhotoById',
  //责任校验
  API_RES_CHECK: API + 'AIAction/AiResponsibility',
  //事故车辆信息更新 --点击同意不同意
  API_ACCIDENT_UPDATE: API + 'CarInfoAction/agreeOrNot',
  // 事故B方录入信息前，查询其责任比例、车牌
  API_QUERY_B_INFO: API + 'CarInfoAction/queryByAORB',
  //查询车辆类型1
  API_CAR_TYPE: API + 'CarTypeAction/getAllCarType',
  //查询保险公司
  API_INSURANCE_COMPANY: API + 'InsuranceCompanyAction/getAllInsuranceCompany',
  //提交事故信息车辆详细信息
  API_SAVE_CAR_DETAIL: API + 'CarInfoAction/batchCompleteInfo',
  //根据事故id查询事故的所有信息  todo 
  API_ACCIDENT_DETAIL: API + 'AccidentInfoAction/queryAccidentInfoAndCarinfo',
  //OCR智能图片识别
  API_OCR_PHOTO: API + 'OCRAction/allByOCR',
  //行驶证驾驶证识别并保存
  API_CARD_OCR_SAVE: API + 'PhotoInfoAction/saveDriveImage',
  // 事故B方扫码打开页面后请求，改变状态
  API_SCAN: API + 'CarInfoAction/scan',
  // 查询事故照片
  API_QUERY_PHOTO_LIST: API + 'PhotoInfoAction/queryPhotoList',
  //pdf下载接口
  API_DOWN_PDF: API + 'PdfAction/downLoadPdf',
  //获取pdf的url
  API_GET_PDF_URL: API + 'PdfAction/getpdfUrl',
  // 检查列表——
  API_GET_ACCIDENT_LIST: API + 'AccidentInfoAction/queryAccidentInfoByPhone',
  //通过手机号查询事故信息
  API_QUERY_ACCIDENT_INFO: API + 'AccidentInfoAction/queryAccidentInfoByPhone',
  //待处理事故查询
  API_UNPROCESSE_ACCIDENT_SWITCH: API + 'AccidentInfoAction/queryPage',
  //删除报案记录
  API_DELETE_REPORT_RECORD: API + 'AccidentInfoAction/deleteAccidentByNo',
  //撤离现场接口
  API_SAVE_OUT: API + 'AccidentInfoAction/leaveTrigger',
  //新分支更新信息接口
  API_UPDATE_ACCIDENTINFO: API + 'AccidentInfoAction/updateAccidentInfo'
};